home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Reference Guide / C-C++ Interactive Reference Guide.iso / c_ref / csource4 / 221_01 / isdigit.c < prev    next >
Text File  |  1979-12-31  |  256b  |  9 lines

  1. #include stdio.h
  2. /*
  3. **  check if digit
  4. **  return 1 if true else 0
  5. */
  6. isdigit(c) char c; {
  7.   return((c>='0') & (c<='9'));
  8.   }
  9.